<?php



use think\facade\Route;
//不需要鉴权
Route::get('service/:version/index/:function','service/:version.index/:function')->middleware(['CrossDomain']);

//需要鉴权
Route::rule('service/:version/:controller/:function','service/:version.:controller/:function')->middleware(['CrossDomain']);
